Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implemented input of preview email address #2483

Merged

Conversation

xela1601
Copy link
Collaborator

Description

This PR introduces a new feature, that allows custom addresses to be used to send the test emails.

Screenshots

CleanShot 2025-01-19 at 12 46 13

In case of an invalid email address is entered and the button is being clicked:

CleanShot 2025-01-19 at 12 46 29

Changes

  • Adds an input field that can be used to enter a custom email address where the test email is being sent to.

Notes to reviewer

Check out the networks tab in the dev tools to ensure the input email is indeed being sent to the backend (where the email is being sent)

Related issues

Resolves #2441

Now custom addresses can be used to send the test emails

Signed-off-by: Alexander Schreiner <github@alexander-schreiner.de>
Copy link
Member

@richardolsson richardolsson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I love this! It's a very major improvement in a quick and simple way.

I did find one thing that I would like to request be changed, because it happened to me while playing around that the cached user state reset, and that cascaded and caused this state to also reset. I have suggested the solution below.

Set email to `user.email` only if it was not touched by the user first

Signed-off-by: Alexander Schreiner <github@alexander-schreiner.de>
Copy link
Member

@richardolsson richardolsson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! I think this is ready to merge now. It's a major improvement that I know several users who will love. 💯

I have tried the preview build again, and had another look at the code. It all looks great! I appreciate the creativity with regards to validation and UI. 🙌

@richardolsson richardolsson merged commit fb9f3dc into main Jan 19, 2025
6 checks passed
@richardolsson richardolsson deleted the feature/issue-2441-send-preview-email-to-custom-address branch January 19, 2025 16:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Send preview email to custom address
2 participants